package Month07.day15.test1;

public class main {
    public static void main(String[] args) {
        Freezer freezer = new Freezer();
        freezer.setBand("华为");
        Tv tv = new Tv();
        tv.setBand("格力");
        Washer washer = new Washer();
        washer.setBand("小米");
        freezer.work();
        tv.work();
        washer.work();
        System.out.println(tv.getBand());
        System.out.println(washer.getBand());
        System.out.println(freezer.getBand());
    }
}
